package dao

import (
	"github.com/gogf/gf/database/gdb"
	"github.com/gogf/gf/frame/g"
)

var T_device_define = t_device_define{}

type t_device_define struct {
}
func (a *t_device_define)GetList(where ...string) (list gdb.List,err error) {
	db:=g.DB(g.Cfg().GetString("custom.db_name"))
	model := db.Model("t_device_define")
	if len(where)==0{
	}else {
		model = model.Where(where[0])
	}
	res,err:=model.All()
	return res.List(),err
}